package cn.openea.perpartner.payment.web.coupon.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.math.BigDecimal;


@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_coupon_record")
public class CouponRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private Long id;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "优惠券id,关联coupon表（id）")
    private Long couponId;
    @ApiModelProperty(value = "订单id")
    private String orderId;
    @ApiModelProperty(value = "使用时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderMount;
    @ApiModelProperty(value = "商品id")
    private Long productId;


}

